import ins from '@/utils/request.js'
//获取学科列表
export function getaSubjectList(params) {
    return ins({
        url: '/subject/list',
        params
    })
}

//新增学科
export function addSubject(data) {
    return ins({
        url: '/subject/add',
        method: 'post',
        data
    })
}

//学科编辑
export function editSubject(data) {
    return ins({
        url: '/subject/edit',
        method: 'post',
        data
    })
}

//状态切换
export function changeSubjectStatus(data) {
    return ins({
        url: '/subject/status',
        method: 'post',
        data
    })
}

//删除学科
export function delSubject(data) {
    return ins({
        url: '/subject/remove',
        method: 'post',
        data
    })
}